package com.rt.schedulebase.dto.esb.schedule.resquest.xray;

import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import lombok.Data;

import java.util.List;

/**
 * @author ljy aka ryan
 * @date 2022/6/15 15:59
 * @description TODO
 */
@Data
public class XRaySendMsg<T> {

    @JacksonXmlProperty(isAttribute = true)
    private String id;

    @JacksonXmlProperty(isAttribute = true)
    private String lastUpdate;

    @JacksonXmlProperty(isAttribute = true)
    private String action;

    /**
     * 数据明细
     */
    @JacksonXmlElementWrapper(localName = "DETAILS")
    @JacksonXmlProperty(localName = "DETAIL")
    private List<T> detail;



    @JacksonXmlProperty(localName = "EXAM_CATEG_NAME")
    private String examCategName;

    @JacksonXmlProperty(localName = "EXAM_CATEG_CODE")
    private String examCategCode;

    @JacksonXmlProperty(localName = "ROOMID")
    private String roomId;

    @JacksonXmlProperty(localName = "QUEUEID")
    private String queueId;

    /**
     * 预约时间
     */
    @JacksonXmlProperty(localName = "RESERVE_EXAM_DATE")
    private String reserveExamDate;

}
